// dlgchangemovebasepoint.cpp : implementation file
//

#include "stdafx.h"
#include "dlgchangemovebasepoint.h"
#include "MoveJig.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgChangeMoveBasePoint dialog

namespace EntityJig
{
	CDlgChangeMoveBasePoint::CDlgChangeMoveBasePoint(CWnd* pParent /*=NULL*/)
		: CDialog(CDlgChangeMoveBasePoint::IDD, pParent)
	{
		INIT_RESOURCE
		m_pJig = NULL;
		//{{AFX_DATA_INIT(CDlgChangeMoveBasePoint)
		// NOTE: the ClassWizard will add member initialization here
		//}}AFX_DATA_INIT
	}
	
	
	void CDlgChangeMoveBasePoint::DoDataExchange(CDataExchange* pDX)
	{
		CDialog::DoDataExchange(pDX);
		//{{AFX_DATA_MAP(CDlgChangeMoveBasePoint)
		// NOTE: the ClassWizard will add DDX and DDV calls here
		//}}AFX_DATA_MAP
	}
	
	
	BEGIN_MESSAGE_MAP(CDlgChangeMoveBasePoint, CDialog)
		//{{AFX_MSG_MAP(CDlgChangeMoveBasePoint)
		ON_BN_CLICKED(IDC_PREV_BUTTON, OnPrevButton)
		ON_BN_CLICKED(IDC_NEXT_BUTTON, OnNextButton)
	ON_WM_CREATE()
	//}}AFX_MSG_MAP
		END_MESSAGE_MAP()
		
		/////////////////////////////////////////////////////////////////////////////
		// CDlgChangeMoveBasePoint message handlers
		
		void CDlgChangeMoveBasePoint::OnPrevButton() 
	{
		ASSERT(m_pJig);
		m_pJig->SetToPrevConnectPoint();
		
	}
	
	void CDlgChangeMoveBasePoint::OnNextButton() 
	{
		ASSERT(m_pJig);
		m_pJig->SetToNextConnectPoint();
		
	}
	
	int CDlgChangeMoveBasePoint::OnCreate(LPCREATESTRUCT lpCreateStruct) 
	{
		if (CDialog::OnCreate(lpCreateStruct) == -1)
			return -1;
		
		END_RESOURCE
			
			return 0;
	}
}

